﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FinanceMaintainace.aspx.cs"
    Inherits="PMS.Web.FinanceMaintainace" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="css/grouplist.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        //显示
        function showContentDiv(t) {
            $(".contentDiv").hide();
            $(".contentDiv").eq(t).show();
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hid_ProjectID" runat="server" Value="0" />
    <asp:HiddenField ID="hid_ID" runat="server" Value="0" />
    <div style="margin: auto; width: 98%;">
        <table width="100%">
            <tr>
                <td align="right" style="width: 120px;">
                    项目类型：
                </td>
                <td align="left">
                    <asp:Label ID="lab_ProjectType" ForeColor="Red" runat="server" Text=""></asp:Label>
                </td>
                <td align="right" style="width: 100px;">
                    工程编号：
                </td>
                <td align="left">
                    <asp:Label ID="lab_ProjectID" ForeColor="Red" runat="server" Text=""></asp:Label>
                </td>
                <td align="right" style="width: 100px;">
                    JDE号：
                </td>
                <td align="left">
                    <asp:Label ID="lab_JDEID" ForeColor="Red" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    城市：
                </td>
                <td>
                    <asp:Label ID="lab_City" ForeColor="Red" runat="server"></asp:Label>
                </td>
                <td align="right">
                    项目名称：
                </td>
                <td colspan="3">
                    <asp:Label ID="lab_ProjectName" ForeColor="Red" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    系统安装地址：
                </td>
                <td>
                    <asp:Label ID="lab_SystemPath" ForeColor="Red" runat="server"></asp:Label>
                </td>
                <td align="right">
                    客户联系人：
                </td>
                <td>
                    <asp:Label ID="lab_Customer" ForeColor="Red" runat="server"></asp:Label>
                </td>
                <td align="right">
                    联系电话：
                </td>
                <td>
                    <asp:Label ID="lab_CustomerTel" ForeColor="Red" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <img src="image/mainpage_line.jpg" style="margin: 5px 0px 5px 0px;" />
        <div class="contentDiv">
            <table>
                <tr>
                    <td align="right" style="padding-right: 4px">
                        <asp:Label ID="CalendarFrom" runat="server" Text="From"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txt_FromDate" runat="server" class="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                    <td align="right" style="padding-right: 4px">
                        <asp:Label ID="CalendarTo" runat="server" Text="To"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txt_ToDate" runat="server" class="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                    <td style="padding-right: 4px">
                        <asp:Button ID="btn_Search" runat="server" Text="查询" CssClass="BlueButton_Min" 
                            onclick="btn_Search_Click" />
                    </td>
                    <td style="padding-right: 4px">
                        <asp:Button ID="btn_Export" runat="server" Text="导出" CssClass="BlueButton_Min" 
                            onclick="btn_Export_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btn_Add" runat="server" Text="添加" CssClass="BlueButton_Min" OnClientClick="showContentDiv(1);return false;" />
                    </td>
                </tr>
            </table>
            <img src="image/mainpage_line.jpg" style="margin: 5px 0px 5px 0px;" />
            <asp:GridView ID="gv_PMS_ProjectMaintainFinance" runat="server" AutoGenerateColumns="False"
                OnRowDataBound="gv_PMS_ProjectMaintainFinance_RowDataBound" HeaderStyle-CssClass="GridHeader"
                CssClass="GridTable" HeaderStyle-Height="23px" Width="100%" ShowHeaderWhenEmpty="True"
                DataKeyNames="id" EmptyDataText="没有数据" EmptyDataRowStyle-CssClass="GridTableTDCenter"
                OnRowCommand="gv_PMS_ProjectMaintainFinance_RowCommand">
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="4%" />
                        <ItemStyle Width="4%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="orderAmount" HeaderText="订单原金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="6%" />
                        <ItemStyle Width="6%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="settlementAmount" HeaderText="最终结算金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="6%" />
                        <ItemStyle Width="6%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="startDate" HeaderText="合同开始日期" DataFormatString="{0:yyyy-MM-dd}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="8%" />
                        <ItemStyle Width="8%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="endDate" HeaderText="合同结束日期" DataFormatString="{0:yyyy-MM-dd}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="8%" />
                        <ItemStyle Width="8%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="systemACSCount" HeaderText="门禁数量" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="systemACSAmount" HeaderText="门禁金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="systemCCTVCount" HeaderText="监控数量" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="systemCCTVAmount" HeaderText="监控金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="systemALARMCount" HeaderText="报警数量" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="systemALARMAmount" HeaderText="报警金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="systemATMCount" HeaderText="ATM数量" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="systemATMAmount" HeaderText="ATM金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="paidMoney" HeaderText="已支付金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="claimMoney" HeaderText="申请金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="balanceMoney" HeaderText="未申请金额" DataFormatString="{0:c}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="applyStage" HeaderText="申请阶段" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="5%" />
                        <ItemStyle Width="5%" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="编辑" ShowHeader="False">
                        <ItemTemplate>
                            <asp:ImageButton ID="imabtn_Edit" runat="server" CausesValidation="False" CommandName="Edited"
                                ImageUrl="~/image/Edit.gif" Text="编辑" CommandArgument='<%#Eval("id") %>' />
                        </ItemTemplate>
                        <HeaderStyle CssClass="GridHeader" Width="4%" />
                        <ItemStyle CssClass="GridTableTDCenter" Width="4%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除" ShowHeader="False">
                        <ItemTemplate>
                            <asp:ImageButton ID="imabtn_Delete" runat="server" CausesValidation="False" CommandName="Del"
                                ImageUrl="~/image/Delete.gif" Text="删除" CommandArgument='<%#Eval("id") %>' OnClientClick="return confirm('确定删除?');" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="GridHeader" Width="4%" />
                        <ItemStyle CssClass="GridTableTDCenter" Width="4%" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div class="contentDiv" style="display: none;">
            <table width="100%">
                <tr>
                    <td colspan="8" align="left">
                        <div>
                            项目信息</div>
                        <img src="image/mainpage_line.jpg" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        订单原金额
                    </td>
                    <td align="left" colspan="7">
                        <asp:TextBox ID="txt_OrderAmount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        变更金额
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_ChangeAmount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        最终结算金额
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_SettlementAmount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        合同开始日期
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_StartDate" runat="server" Width="100px" CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                    <td align="right">
                        合同结束日期
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_EndDate" runat="server" Width="100px" CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="8" align="left">
                        <img src="image/mainpage_line.jpg" />
                        <div>
                            维保系统数量</div>
                        <img src="image/mainpage_line.jpg" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        门禁 ACS
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_systemACSCount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        监控 CCTV
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_systemCCTVCount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        报警 ALARM
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_systemALARMCount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        ATM
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_systemATMCount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="8" align="left">
                        <img src="image/mainpage_line.jpg" />
                        <div>
                            维保设备金额</div>
                        <img src="image/mainpage_line.jpg" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        门禁 ACS
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_systemACSAmount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        监控 CCTV
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_systemCCTVAmount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        报警 ALARM
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_systemALARMAmount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        ATM
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_systemATMAmount" runat="server" Width="100px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="8" align="left">
                        <img src="image/mainpage_line.jpg" />
                        <div>
                            申请信息</div>
                        <img src="image/mainpage_line.jpg" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        已支付金额
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_paidMoney" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        本月申请金额
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_claimMoney" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        未申请金额
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_balanceMoney" runat="server" Width="100px"></asp:TextBox>
                    </td>
                    <td align="right">
                        申请阶段
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_applyStage" runat="server" Width="100px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        备注
                    </td>
                    <td colspan="7">
                        <asp:TextBox ID="txt_Remark" runat="server" TextMode="MultiLine" Width="700px" Height="50px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="8">
                        <asp:Button runat="server" ID="btn_AddFinanceMaintain" Text="保存" CssClass="BlueButton_Min"
                            OnClick="btn_AddFinanceMaintain_Click" /><input id="btn_Return" style="margin-left: 20px;"
                                class="BlueButton_Min" value="返回" type="button" onclick="showContentDiv(0);" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
